package com.it.myd.bean.box.world;

public class Ability {

    private int strength;
    private int speed;

    public int getStrength() {
        return strength;
    }

    public int getSpeed() {
        return speed;
    }

    public void setStrength(int strength) {
        this.strength = strength;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public Ability addAbility(Ability ability){
        Ability a = new Ability();
        if(ability != null){
            a.setStrength(this.strength+ability.getStrength());
            a.setSpeed(this.speed+ability.getSpeed());
        }else{
            return this;
        }
        return a;
    }
}
